package com.ssy.lingxi.platform.manage.service.content;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.entity.content.ContentCategory;
import com.ssy.lingxi.platform.manage.model.request.common.CommonIdRequest;
import com.ssy.lingxi.platform.manage.model.request.content.ContentCategoryRequest;
import com.ssy.lingxi.platform.manage.model.response.ContentCategoryResponse;

import java.util.List;

/**
 * 分类管理 - 业务处理层
 * @author fhj
 * @version 2.0.0
 * @date 2021/04/25
 */
public interface IContentCategoryService {

    Wrapper<List<ContentCategoryResponse>> all();

    Wrapper<ContentCategory> get(CommonIdRequest request);

    Wrapper<Void> add(ContentCategoryRequest request, UserLoginCacheDTO user);

    Wrapper<Void> update(ContentCategoryRequest request, UserLoginCacheDTO user);

    Wrapper<Void>  delete(CommonIdRequest request, UserLoginCacheDTO user);

    Wrapper<List<ContentCategoryResponse>> recommend();
}
